package org.javaforever.cookieshop.service;

import java.util.List;
import org.javaforever.cookieshop.domain.RecommendBean;

public interface RecommendService{
	public List<RecommendBean> listAllRecommends() throws Exception;
	public Boolean updateRecommend(RecommendBean recommend) throws Exception;
	public Boolean deleteRecommend(Long id) throws Exception;
	public Boolean addRecommend(RecommendBean recommend) throws Exception;
	public boolean softDeleteRecommend(Long id) throws Exception;
	public RecommendBean findRecommendById(Long id) throws Exception;
	public RecommendBean findRecommendByName(String name) throws Exception;
	public List<RecommendBean> listActiveRecommends() throws Exception;
	public void deleteAllRecommends(String ids) throws Exception;
	public void softDeleteAllRecommends(String ids) throws Exception;
	public Boolean toggleRecommend(Long id) throws Exception;
	public Boolean toggleOneRecommend(Long id) throws Exception;
	public List<RecommendBean> searchRecommendsByFieldsByPage(RecommendBean recommend,Integer pagesize,Integer pagenum) throws Exception;
	public Boolean activateRecommend(Long id) throws Exception;
	public void activateAllRecommends(String ids) throws Exception;
	public List<RecommendBean> searchRecommendsByFields(RecommendBean recommend) throws Exception;
	public Boolean cloneRecommend(Long id) throws Exception;
	public void cloneAllRecommends(String ids) throws Exception;
	public Integer countSearchRecommendsByFieldsRecords(RecommendBean recommend) throws Exception;
	public Integer countActiveRecommendRecords() throws Exception;
}
